home *** CD-ROM | disk | FTP | other *** search
- on doFunction
- global Voice, last
- if (the castNum of sprite 11 = the number of member "opposite") and (the castNum of sprite 12 = the number of member "hypotenuse") then
- set the castNum of sprite 10 to cast "sine"
- if Voice and (last <> the castNum of sprite 10) then
- puppetSound("sine.aif")
- end if
- end if
- if (the castNum of sprite 11 = the number of member "adjacent") and (the castNum of sprite 12 = the number of member "hypotenuse") then
- set the castNum of sprite 10 to cast "cosine"
- if Voice and (last <> the castNum of sprite 10) then
- puppetSound("cose.aif")
- end if
- end if
- if (the castNum of sprite 11 = the number of member "opposite") and (the castNum of sprite 12 = the number of member "adjacent") then
- set the castNum of sprite 10 to cast "tangent"
- if Voice and (last <> the castNum of sprite 10) then
- puppetSound("tan.aif")
- end if
- end if
- if (the castNum of sprite 11 = the number of member "hypotenuse") and (the castNum of sprite 12 = the number of member "opposite") then
- set the castNum of sprite 10 to cast "cosecant"
- if Voice and (last <> the castNum of sprite 10) then
- puppetSound("cosec.aif")
- end if
- end if
- if (the castNum of sprite 11 = the number of member "hypotenuse") and (the castNum of sprite 12 = the number of member "adjacent") then
- set the castNum of sprite 10 to cast "secant"
- if Voice and (last <> the castNum of sprite 10) then
- puppetSound("secan.aif")
- end if
- end if
- if (the castNum of sprite 11 = the number of member "adjacent") and (the castNum of sprite 12 = the number of member "opposite") then
- set the castNum of sprite 10 to cast "cotangent"
- if Voice and (last <> the castNum of sprite 10) then
- puppetSound("cotan.aif")
- end if
- end if
- if (the castNum of sprite 11 = the castNum of sprite 12) and (the castNum of sprite 11 <> the number of member "quest") then
- set the castNum of sprite 10 to cast "one"
- end if
- set last to the castNum of sprite 10
- end
-